// 首页-政策申报-数据统计
import request from '@/utils/request';

export type NewsType = {
  id: number;
  title: string;
  introduction: string;
  content: string;
  publishTime: string;
  publishPerson: number;
  publishPersonName?: string | null;
  updatePerson?: string | null;
  updatePersonName?: string | null;
  isHot?: string;
  isNew?: string;
  isTop?: string;
  isOnline?: string;
  createTime: string;
  updateTime?: string;
  isDelete?: string;
};

export async function findNewByCondition(data: any): Promise<any> {
  return request.post(`/portal/findNewByCondition`, {
    data,
  });
}
export async function findPolicyInfoNewsById(params: any): Promise<any> {
  return request.get(`/portal/findPolicyInfoNewsById`, {
    params,
  });
}
